﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.SAMPLES.SAMPLES_02
{
    public partial class SAMPLES_02 : Form
    {
        public SAMPLES_02()
        {
            InitializeComponent();
        }

        private void SAMPLES_02_Load(object sender, EventArgs e)
        {
            XEDAP xd = new XEDAP();
            lsbDanhSach.Items.Add("XE DAP");
            lsbDanhSach.Items.Add("Ban dap: " + xd.BANDAP());
            lsbDanhSach.Items.Add("Banh: " + xd.BANH());
            lsbDanhSach.Items.Add("Dong Co: " + xd.DONGCO());
            lsbDanhSach.Items.Add("Kinh Chan Gio: " + xd.KINHCHANGIO());
            lsbDanhSach.Items.Add("Phanh: " + xd.PHANH());
            lsbDanhSach.Items.Add("Tay Ga: " + xd.TAYGA());
            lsbDanhSach.Items.Add("Vo Lang: " + xd.VOLANG());

            XEMAY xm = new XEMAY();
            lsbDanhSach.Items.Add("XE MAY");
            lsbDanhSach.Items.Add("Ban dap: " + xm.BANDAP());
            lsbDanhSach.Items.Add("Banh: " + xm.BANH());
            lsbDanhSach.Items.Add("Dong Co: " + xm.DONGCO());
            lsbDanhSach.Items.Add("Kinh Chan Gio: " + xm.KINHCHANGIO());
            lsbDanhSach.Items.Add("Phanh: " + xm.PHANH());
            lsbDanhSach.Items.Add("Tay Ga: " + xm.TAYGA());
            lsbDanhSach.Items.Add("Vo Lang: " + xm.VOLANG());


            XEOTOCON xotocon = new XEOTOCON();
            lsbDanhSach.Items.Add("XE OTO CON");
            lsbDanhSach.Items.Add("Ban dap: " + xotocon.BANDAP());
            lsbDanhSach.Items.Add("Banh: " + xotocon.BANH());
            lsbDanhSach.Items.Add("Dong Co: " + xotocon.DONGCO());
            lsbDanhSach.Items.Add("Kinh Chan Gio: " + xotocon.KINHCHANGIO());
            lsbDanhSach.Items.Add("Phanh: " + xotocon.PHANH());
            lsbDanhSach.Items.Add("Tay Ga: " + xotocon.TAYGA());
            lsbDanhSach.Items.Add("Vo Lang: " + xotocon.VOLANG());

            XETAI xt = new XETAI();
            lsbDanhSach.Items.Add("XE TAI");
            lsbDanhSach.Items.Add("Ban dap: " + xt.BANDAP());
            lsbDanhSach.Items.Add("Banh: " + xt.BANH());
            lsbDanhSach.Items.Add("Dong Co: " + xt.DONGCO());
            lsbDanhSach.Items.Add("Kinh Chan Gio: " + xt.KINHCHANGIO());
            lsbDanhSach.Items.Add("Phanh: " + xt.PHANH());
            lsbDanhSach.Items.Add("Tay Ga: " + xt.TAYGA());
            lsbDanhSach.Items.Add("Vo Lang: " + xt.VOLANG());
            
        }
    }
}
